#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
def foo():
    print("foo")

def bar():
    print("bar")

dic = {
    "foo": foo,
    "bar": bar
}

while True:
    chiose = input(">>: ").strip()
    if chiose in dic:
        dic[chiose]()
